* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #2c3e50;
    font-size: 28px;
}

.header-controls {
    display: flex;
    gap: 10px;
}

.header-controls button {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #4841b2, #4744a8);
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.filter-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-controls select,
.filter-controls input {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    min-width: 150px;
}

.filter-controls button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
    cursor: pointer;
}

.filter-controls button:last-child {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.data-panel,
.visualization-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.data-panel h3,
.visualization-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background: linear-gradient(45deg, #4841b2, #4744a8);
    color: white;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f5f5f5;
}

.network-container {
    height: 500px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.info-panel {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ecf0f1;
    background: linear-gradient(135deg, #4841b2, #4744a8);
    color: white;
    border-radius: 12px 12px 0 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.panel-content {
    padding: 20px;
}

.status-bar {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

.json-view {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.btn-view {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #4c1a98;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.btn-view:hover {
    background: #4c1a98;
}